/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code RoomStatsMessage}
 */
public final class RoomStatsMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:RoomStatsMessage)
    RoomStatsMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RoomStatsMessage.newBuilder() to construct.
  private RoomStatsMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RoomStatsMessage() {
    displayShort_ = "";
    displayMiddle_ = "";
    displayLong_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new RoomStatsMessage();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Douyin.internal_static_RoomStatsMessage_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Douyin.internal_static_RoomStatsMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            RoomStatsMessage.class, Builder.class);
  }

  private int bitField0_;
  public static final int COMMON_FIELD_NUMBER = 1;
  private Common common_;
  /**
   * <code>.Common common = 1;</code>
   * @return Whether the common field is set.
   */
  @Override
  public boolean hasCommon() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Common common = 1;</code>
   * @return The common.
   */
  @Override
  public Common getCommon() {
    return common_ == null ? Common.getDefaultInstance() : common_;
  }
  /**
   * <code>.Common common = 1;</code>
   */
  @Override
  public CommonOrBuilder getCommonOrBuilder() {
    return common_ == null ? Common.getDefaultInstance() : common_;
  }

  public static final int DISPLAYSHORT_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile Object displayShort_ = "";
  /**
   * <code>string displayShort = 2;</code>
   * @return The displayShort.
   */
  @Override
  public String getDisplayShort() {
    Object ref = displayShort_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      displayShort_ = s;
      return s;
    }
  }
  /**
   * <code>string displayShort = 2;</code>
   * @return The bytes for displayShort.
   */
  @Override
  public com.google.protobuf.ByteString
      getDisplayShortBytes() {
    Object ref = displayShort_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      displayShort_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAYMIDDLE_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile Object displayMiddle_ = "";
  /**
   * <code>string displayMiddle = 3;</code>
   * @return The displayMiddle.
   */
  @Override
  public String getDisplayMiddle() {
    Object ref = displayMiddle_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      displayMiddle_ = s;
      return s;
    }
  }
  /**
   * <code>string displayMiddle = 3;</code>
   * @return The bytes for displayMiddle.
   */
  @Override
  public com.google.protobuf.ByteString
      getDisplayMiddleBytes() {
    Object ref = displayMiddle_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      displayMiddle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAYLONG_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile Object displayLong_ = "";
  /**
   * <code>string displayLong = 4;</code>
   * @return The displayLong.
   */
  @Override
  public String getDisplayLong() {
    Object ref = displayLong_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      displayLong_ = s;
      return s;
    }
  }
  /**
   * <code>string displayLong = 4;</code>
   * @return The bytes for displayLong.
   */
  @Override
  public com.google.protobuf.ByteString
      getDisplayLongBytes() {
    Object ref = displayLong_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      displayLong_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAYVALUE_FIELD_NUMBER = 5;
  private long displayValue_ = 0L;
  /**
   * <code>int64 displayValue = 5;</code>
   * @return The displayValue.
   */
  @Override
  public long getDisplayValue() {
    return displayValue_;
  }

  public static final int DISPLAYVERSION_FIELD_NUMBER = 6;
  private long displayVersion_ = 0L;
  /**
   * <code>int64 displayVersion = 6;</code>
   * @return The displayVersion.
   */
  @Override
  public long getDisplayVersion() {
    return displayVersion_;
  }

  public static final int INCREMENTAL_FIELD_NUMBER = 7;
  private boolean incremental_ = false;
  /**
   * <code>bool incremental = 7;</code>
   * @return The incremental.
   */
  @Override
  public boolean getIncremental() {
    return incremental_;
  }

  public static final int ISHIDDEN_FIELD_NUMBER = 8;
  private boolean isHidden_ = false;
  /**
   * <code>bool isHidden = 8;</code>
   * @return The isHidden.
   */
  @Override
  public boolean getIsHidden() {
    return isHidden_;
  }

  public static final int TOTAL_FIELD_NUMBER = 9;
  private long total_ = 0L;
  /**
   * <code>int64 total = 9;</code>
   * @return The total.
   */
  @Override
  public long getTotal() {
    return total_;
  }

  public static final int DISPLAYTYPE_FIELD_NUMBER = 10;
  private long displayType_ = 0L;
  /**
   * <code>int64 displayType = 10;</code>
   * @return The displayType.
   */
  @Override
  public long getDisplayType() {
    return displayType_;
  }

  private byte memoizedIsInitialized = -1;
  @Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getCommon());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayShort_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayShort_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayMiddle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayMiddle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLong_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayLong_);
    }
    if (displayValue_ != 0L) {
      output.writeInt64(5, displayValue_);
    }
    if (displayVersion_ != 0L) {
      output.writeInt64(6, displayVersion_);
    }
    if (incremental_ != false) {
      output.writeBool(7, incremental_);
    }
    if (isHidden_ != false) {
      output.writeBool(8, isHidden_);
    }
    if (total_ != 0L) {
      output.writeInt64(9, total_);
    }
    if (displayType_ != 0L) {
      output.writeInt64(10, displayType_);
    }
    getUnknownFields().writeTo(output);
  }

  @Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCommon());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayShort_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayShort_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayMiddle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayMiddle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLong_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayLong_);
    }
    if (displayValue_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, displayValue_);
    }
    if (displayVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, displayVersion_);
    }
    if (incremental_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, incremental_);
    }
    if (isHidden_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, isHidden_);
    }
    if (total_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, total_);
    }
    if (displayType_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(10, displayType_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof RoomStatsMessage)) {
      return super.equals(obj);
    }
    RoomStatsMessage other = (RoomStatsMessage) obj;

    if (hasCommon() != other.hasCommon()) return false;
    if (hasCommon()) {
      if (!getCommon()
          .equals(other.getCommon())) return false;
    }
    if (!getDisplayShort()
        .equals(other.getDisplayShort())) return false;
    if (!getDisplayMiddle()
        .equals(other.getDisplayMiddle())) return false;
    if (!getDisplayLong()
        .equals(other.getDisplayLong())) return false;
    if (getDisplayValue()
        != other.getDisplayValue()) return false;
    if (getDisplayVersion()
        != other.getDisplayVersion()) return false;
    if (getIncremental()
        != other.getIncremental()) return false;
    if (getIsHidden()
        != other.getIsHidden()) return false;
    if (getTotal()
        != other.getTotal()) return false;
    if (getDisplayType()
        != other.getDisplayType()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCommon()) {
      hash = (37 * hash) + COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getCommon().hashCode();
    }
    hash = (37 * hash) + DISPLAYSHORT_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayShort().hashCode();
    hash = (37 * hash) + DISPLAYMIDDLE_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayMiddle().hashCode();
    hash = (37 * hash) + DISPLAYLONG_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayLong().hashCode();
    hash = (37 * hash) + DISPLAYVALUE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDisplayValue());
    hash = (37 * hash) + DISPLAYVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDisplayVersion());
    hash = (37 * hash) + INCREMENTAL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIncremental());
    hash = (37 * hash) + ISHIDDEN_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsHidden());
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTotal());
    hash = (37 * hash) + DISPLAYTYPE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDisplayType());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static RoomStatsMessage parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static RoomStatsMessage parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static RoomStatsMessage parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static RoomStatsMessage parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static RoomStatsMessage parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static RoomStatsMessage parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static RoomStatsMessage parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static RoomStatsMessage parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static RoomStatsMessage parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static RoomStatsMessage parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static RoomStatsMessage parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static RoomStatsMessage parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(RoomStatsMessage prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code RoomStatsMessage}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:RoomStatsMessage)
      RoomStatsMessageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Douyin.internal_static_RoomStatsMessage_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Douyin.internal_static_RoomStatsMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              RoomStatsMessage.class, Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RoomStatsMessage.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommonFieldBuilder();
      }
    }
    @Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      displayShort_ = "";
      displayMiddle_ = "";
      displayLong_ = "";
      displayValue_ = 0L;
      displayVersion_ = 0L;
      incremental_ = false;
      isHidden_ = false;
      total_ = 0L;
      displayType_ = 0L;
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Douyin.internal_static_RoomStatsMessage_descriptor;
    }

    @Override
    public RoomStatsMessage getDefaultInstanceForType() {
      return RoomStatsMessage.getDefaultInstance();
    }

    @Override
    public RoomStatsMessage build() {
      RoomStatsMessage result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public RoomStatsMessage buildPartial() {
      RoomStatsMessage result = new RoomStatsMessage(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(RoomStatsMessage result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.common_ = commonBuilder_ == null
            ? common_
            : commonBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayShort_ = displayShort_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.displayMiddle_ = displayMiddle_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.displayLong_ = displayLong_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.displayValue_ = displayValue_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.displayVersion_ = displayVersion_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.incremental_ = incremental_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.isHidden_ = isHidden_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.total_ = total_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.displayType_ = displayType_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @Override
    public Builder clone() {
      return super.clone();
    }
    @Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.setField(field, value);
    }
    @Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.addRepeatedField(field, value);
    }
    @Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof RoomStatsMessage) {
        return mergeFrom((RoomStatsMessage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(RoomStatsMessage other) {
      if (other == RoomStatsMessage.getDefaultInstance()) return this;
      if (other.hasCommon()) {
        mergeCommon(other.getCommon());
      }
      if (!other.getDisplayShort().isEmpty()) {
        displayShort_ = other.displayShort_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getDisplayMiddle().isEmpty()) {
        displayMiddle_ = other.displayMiddle_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getDisplayLong().isEmpty()) {
        displayLong_ = other.displayLong_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.getDisplayValue() != 0L) {
        setDisplayValue(other.getDisplayValue());
      }
      if (other.getDisplayVersion() != 0L) {
        setDisplayVersion(other.getDisplayVersion());
      }
      if (other.getIncremental() != false) {
        setIncremental(other.getIncremental());
      }
      if (other.getIsHidden() != false) {
        setIsHidden(other.getIsHidden());
      }
      if (other.getTotal() != 0L) {
        setTotal(other.getTotal());
      }
      if (other.getDisplayType() != 0L) {
        setDisplayType(other.getDisplayType());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @Override
    public final boolean isInitialized() {
      return true;
    }

    @Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getCommonFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              displayShort_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              displayMiddle_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              displayLong_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 40: {
              displayValue_ = input.readInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 48: {
              displayVersion_ = input.readInt64();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 56: {
              incremental_ = input.readBool();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            case 64: {
              isHidden_ = input.readBool();
              bitField0_ |= 0x00000080;
              break;
            } // case 64
            case 72: {
              total_ = input.readInt64();
              bitField0_ |= 0x00000100;
              break;
            } // case 72
            case 80: {
              displayType_ = input.readInt64();
              bitField0_ |= 0x00000200;
              break;
            } // case 80
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private Common common_;
    private com.google.protobuf.SingleFieldBuilderV3<
        Common, Common.Builder, CommonOrBuilder> commonBuilder_;
    /**
     * <code>.Common common = 1;</code>
     * @return Whether the common field is set.
     */
    public boolean hasCommon() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.Common common = 1;</code>
     * @return The common.
     */
    public Common getCommon() {
      if (commonBuilder_ == null) {
        return common_ == null ? Common.getDefaultInstance() : common_;
      } else {
        return commonBuilder_.getMessage();
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(Common value) {
      if (commonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        common_ = value;
      } else {
        commonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(
        Common.Builder builderForValue) {
      if (commonBuilder_ == null) {
        common_ = builderForValue.build();
      } else {
        commonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder mergeCommon(Common value) {
      if (commonBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          common_ != null &&
          common_ != Common.getDefaultInstance()) {
          getCommonBuilder().mergeFrom(value);
        } else {
          common_ = value;
        }
      } else {
        commonBuilder_.mergeFrom(value);
      }
      if (common_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder clearCommon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Common.Builder getCommonBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCommonFieldBuilder().getBuilder();
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public CommonOrBuilder getCommonOrBuilder() {
      if (commonBuilder_ != null) {
        return commonBuilder_.getMessageOrBuilder();
      } else {
        return common_ == null ?
            Common.getDefaultInstance() : common_;
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        Common, Common.Builder, CommonOrBuilder>
        getCommonFieldBuilder() {
      if (commonBuilder_ == null) {
        commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            Common, Common.Builder, CommonOrBuilder>(
                getCommon(),
                getParentForChildren(),
                isClean());
        common_ = null;
      }
      return commonBuilder_;
    }

    private Object displayShort_ = "";
    /**
     * <code>string displayShort = 2;</code>
     * @return The displayShort.
     */
    public String getDisplayShort() {
      Object ref = displayShort_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        displayShort_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string displayShort = 2;</code>
     * @return The bytes for displayShort.
     */
    public com.google.protobuf.ByteString
        getDisplayShortBytes() {
      Object ref = displayShort_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        displayShort_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string displayShort = 2;</code>
     * @param value The displayShort to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayShort(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      displayShort_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>string displayShort = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayShort() {
      displayShort_ = getDefaultInstance().getDisplayShort();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <code>string displayShort = 2;</code>
     * @param value The bytes for displayShort to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayShortBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      displayShort_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private Object displayMiddle_ = "";
    /**
     * <code>string displayMiddle = 3;</code>
     * @return The displayMiddle.
     */
    public String getDisplayMiddle() {
      Object ref = displayMiddle_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        displayMiddle_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string displayMiddle = 3;</code>
     * @return The bytes for displayMiddle.
     */
    public com.google.protobuf.ByteString
        getDisplayMiddleBytes() {
      Object ref = displayMiddle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        displayMiddle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string displayMiddle = 3;</code>
     * @param value The displayMiddle to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayMiddle(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      displayMiddle_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>string displayMiddle = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayMiddle() {
      displayMiddle_ = getDefaultInstance().getDisplayMiddle();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>string displayMiddle = 3;</code>
     * @param value The bytes for displayMiddle to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayMiddleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      displayMiddle_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private Object displayLong_ = "";
    /**
     * <code>string displayLong = 4;</code>
     * @return The displayLong.
     */
    public String getDisplayLong() {
      Object ref = displayLong_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        displayLong_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string displayLong = 4;</code>
     * @return The bytes for displayLong.
     */
    public com.google.protobuf.ByteString
        getDisplayLongBytes() {
      Object ref = displayLong_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        displayLong_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string displayLong = 4;</code>
     * @param value The displayLong to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayLong(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      displayLong_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>string displayLong = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayLong() {
      displayLong_ = getDefaultInstance().getDisplayLong();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <code>string displayLong = 4;</code>
     * @param value The bytes for displayLong to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayLongBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      displayLong_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private long displayValue_ ;
    /**
     * <code>int64 displayValue = 5;</code>
     * @return The displayValue.
     */
    @Override
    public long getDisplayValue() {
      return displayValue_;
    }
    /**
     * <code>int64 displayValue = 5;</code>
     * @param value The displayValue to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayValue(long value) {

      displayValue_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>int64 displayValue = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayValue() {
      bitField0_ = (bitField0_ & ~0x00000010);
      displayValue_ = 0L;
      onChanged();
      return this;
    }

    private long displayVersion_ ;
    /**
     * <code>int64 displayVersion = 6;</code>
     * @return The displayVersion.
     */
    @Override
    public long getDisplayVersion() {
      return displayVersion_;
    }
    /**
     * <code>int64 displayVersion = 6;</code>
     * @param value The displayVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayVersion(long value) {

      displayVersion_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>int64 displayVersion = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayVersion() {
      bitField0_ = (bitField0_ & ~0x00000020);
      displayVersion_ = 0L;
      onChanged();
      return this;
    }

    private boolean incremental_ ;
    /**
     * <code>bool incremental = 7;</code>
     * @return The incremental.
     */
    @Override
    public boolean getIncremental() {
      return incremental_;
    }
    /**
     * <code>bool incremental = 7;</code>
     * @param value The incremental to set.
     * @return This builder for chaining.
     */
    public Builder setIncremental(boolean value) {

      incremental_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>bool incremental = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearIncremental() {
      bitField0_ = (bitField0_ & ~0x00000040);
      incremental_ = false;
      onChanged();
      return this;
    }

    private boolean isHidden_ ;
    /**
     * <code>bool isHidden = 8;</code>
     * @return The isHidden.
     */
    @Override
    public boolean getIsHidden() {
      return isHidden_;
    }
    /**
     * <code>bool isHidden = 8;</code>
     * @param value The isHidden to set.
     * @return This builder for chaining.
     */
    public Builder setIsHidden(boolean value) {

      isHidden_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>bool isHidden = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsHidden() {
      bitField0_ = (bitField0_ & ~0x00000080);
      isHidden_ = false;
      onChanged();
      return this;
    }

    private long total_ ;
    /**
     * <code>int64 total = 9;</code>
     * @return The total.
     */
    @Override
    public long getTotal() {
      return total_;
    }
    /**
     * <code>int64 total = 9;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(long value) {

      total_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>int64 total = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      bitField0_ = (bitField0_ & ~0x00000100);
      total_ = 0L;
      onChanged();
      return this;
    }

    private long displayType_ ;
    /**
     * <code>int64 displayType = 10;</code>
     * @return The displayType.
     */
    @Override
    public long getDisplayType() {
      return displayType_;
    }
    /**
     * <code>int64 displayType = 10;</code>
     * @param value The displayType to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayType(long value) {

      displayType_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     * <code>int64 displayType = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayType() {
      bitField0_ = (bitField0_ & ~0x00000200);
      displayType_ = 0L;
      onChanged();
      return this;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:RoomStatsMessage)
  }

  // @@protoc_insertion_point(class_scope:RoomStatsMessage)
  private static final RoomStatsMessage DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new RoomStatsMessage();
  }

  public static RoomStatsMessage getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<RoomStatsMessage>
      PARSER = new com.google.protobuf.AbstractParser<RoomStatsMessage>() {
    @Override
    public RoomStatsMessage parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<RoomStatsMessage> parser() {
    return PARSER;
  }

  @Override
  public com.google.protobuf.Parser<RoomStatsMessage> getParserForType() {
    return PARSER;
  }

  @Override
  public RoomStatsMessage getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

